package com.hhit.zhgd.utils

import org.junit.jupiter.api.Test

import java.util.Date

internal class GlobalFunctionsKtTest {

    data class TestData(val a: Int, private val b: String)

    @Test
    fun toMap() {
        val testData = TestData(1, "test")
        val result = testData.toMap()
        result.forEach { (t, u) ->
            println("key: $t, value: $u")
        }
    }

    @Test
    fun formatString() {
        println(Date().formatString("yyyy-MM-dd"))
    }
}